package com.ccys.db.mapper;

import com.ccys.db.dto.masterData.MedicationReactionPageQueryDto;
import com.ccys.db.entity.TblMedicationReaction;
import com.ccys.db.vo.app.splashscreen.MedicationUsagePeriodsMakeListVo;
import com.ccys.db.vo.masterData.MedicationReactionPageQueryVo;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;
import tk.mybatis.mapper.common.MySqlMapper;

import java.util.List;

/**
 * Created by Mybatis Generator on 2023/12/08
 */
public interface TblMedicationReactionMapper extends Mapper<TblMedicationReaction>, MySqlMapper<TblMedicationReaction> {
    List<MedicationReactionPageQueryVo> findPage(MedicationReactionPageQueryDto dto);

    /**
     * GetMasterData查询所有药物反应
     *
     * @return
     */
    List<MedicationUsagePeriodsMakeListVo> getMasterFindList();

    String findNameById(@Param("id") String id);

    TblMedicationReaction findById(@Param("id") String id);
}